// JA2IniEditorDlg.h : header file
//

#pragma once
#include "WeaponDefs.h"
#include "WeaponDlg.h"
#include "WeapTTX.h"
#include "ItemsDlg.h"
#include "AttachDlg.h"
#include "DealerDlg.h"
#include "Expl_Arm.h"
#include "ibTabCtrl.h"
#include "afxcmn.h"


// CJA2IniEditorDlg dialog
class CJA2IniEditorDlg : public CDialog
{
// Construction
public:
	CJA2IniEditorDlg(CWnd* pParent = NULL);	// standard constructor
  ~CJA2IniEditorDlg();

// Dialog Data
	enum { IDD = IDD_JA2INIEDITOR_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
private:

	CWeaponDlg *pWeapDlg;
	CWeapTTX *pWeapTTX;
	CAttachDlg *pAttachDlg;
	CItemsDlg *pItemsDlg;
	CDealerDlg *pDealerDlg;
  CExpl_Arm  *pExpl_Arm;
	int m_bInit;
	int m_Saved;
	bool m_bWISaved;
	bool m_bIISaved;
	bool m_bAttSaved;
	bool m_bDealerSaved;
  bool m_bExplosivesSaved;
  bool m_bArmourSaved;
public:
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);	
	afx_msg void OnFileExport();
	afx_msg void OnFileExit();
	void OnOK();
	void OnCancel();
	CibTabCtrl m_ctrlTab;
	afx_msg void OnMenu();
	ClassPointers cpPointers;
	afx_msg void OnTcnSelchangeTab1(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnExportWeapons();
	afx_msg void OnExportItems();
	afx_msg void OnExportAttach();
	afx_msg void OnExportDealer();
public:
  afx_msg void OnSaveExpl();
public:
  afx_msg void OnSaveArmour();
public:
//  afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
};
